\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,bbding,pifont,colortbl,amssymb}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% 只需要这个就可以
\usepackage[thicklines]{cancel}

% 可以设置线条颜色，默认是黑色
\usepackage{xcolor}
\renewcommand{\CancelColor}{\color{red}} 
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption,diagbox} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc}
% 图边框颜色
\arrayrulecolor{blue}
% 设置浅蓝色
\definecolor{lightblue1}{RGB}{175, 175, 237}
\definecolor{lightgreen1}{RGB}{226, 246, 186}
% 设定删除线颜色
\renewcommand{\CancelColor}{\color{red}}

\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={,inner sep=0}]
		
		%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\node[drop shadow, fill=white] at (5em,0) (SYNBL){
			\begin{tabular}{|C{2em}|C{3em}|C{3em}|C{3em}|C{3em}|C{3em}|C{3em}|C{3em}|C{3em}|} \hline
				\diagbox[dir=NW,width=3em]{}{} & a & b & c & d & \# & Z & A & B \\ \hline
				0 & a2 & ~ & ~ & ~ & ~ & Z1 & ~ & ~ \\ \hline
				1 & ~ & ~ & ~ & ~ & OK & ~ & ~ & ~ \\ \hline
				2 & ~ & b9 & c11 & ~ & ~ & ~ & ~ & B3 \\ \hline
				3 & ~ & b6 & c8 & ~ & ~ & ~ & A4 & ~ \\ \hline
				4 & ~ & ~ & ~ & d5 & ~ & ~ & ~ & ~ \\ \hline
				5 & r(1) & r(1) & r(1) & r(1) & r(1) & ~ & ~ & ~ \\ \hline
				6 & ~ & ~ & ~ & c7 & ~ & ~ & ~ & ~ \\ \hline
				7 & r(2) & r(2) & r(2) & r(2) & r(2) & ~ & ~ & ~ \\ \hline
				8 & r(3) & r(3) & r(3) & r(3) & r(3) & ~ & ~ & ~ \\ \hline
				9 & ~ & b9 & c11 & ~ & ~ & ~ & ~ & B10 \\ \hline
				10 & r(4) & r(4) & r(4) & r(4) & r(4) & ~ & ~ & ~ \\ \hline
				11 & r(5) & r(5) & r(5) & r(5) & r(5) & ~ & ~ & ~ \\ \hline
			\end{tabular}
			
		};
	\end{tikzpicture}
\end{document}